# Download Document File

The document file associated with the given DCP Document ID is returned in the response body. The file format varies by document (see `fileType` on the Document resource, e.g. `PDF`, `ZIP`). JSON metadata is not included in this response.

Endpoint: GET /documents/download/{dcp_id}
Version: 1.2.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header x-api-key

## Path parameters:

  - `dcp_id` (string, required)
    The DCP document identifier.

## Response 200:

  - `200` (unknown)
    The document file, in its original format.

## Response 200 headers (application/octet-stream):

  - `Content-Disposition` (string)
    The file is marked for download, with the original filename included (e.g., `attachment; filename="r01ds0249ej0120.pdf"`).

## Response 404:

  - `404` (unknown)
    Document not found

## Response 404 fields (application/json):

  - `error` (string)

